<!DOCTYPE html>
<style media="print">
#myfooter
{
    position: fixed;
    bottom: 0;
    width: 2000px;
    border: 5px solid black;
}
#myheader
{
    position: fixed;
    top: 0;
    width: 2000px;
    border: 5px solid black;
}
</style>
<script>
if (window.testRunner)
    testRunner.setPrinting();
</script>
<div id="myheader">
    <div>
        crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide.
        <hr/>
    </div>
</div>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<p>Filler lines</p>
<div id="myfooter">
    <div>
        <hr/>
        crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide.
    </div>
</div>
